package com.example.mymvvmdemo.models.bind_device;

import android.app.Activity;
import android.content.Intent;

import com.example.mymvvmdemo.base.BaseViewModel;
import com.example.mymvvmdemo.models.main.MainActivity;

public class BindDeviceViewModel extends BaseViewModel {

    public String name;
    public String id;
    public String mac;
    public String code;
    public String type;

    public final int HANDLER_REGISTER_ING = 0x100;
    public final int HANDLER_REGISTER_SUCCESS = 0x101;
    public final int HANDLER_BIND_DEVICE_ING = 0x102;
    public final int HANDLER_BIND_DEVICE_SUCCESS = 0x103;
    public final int HANDLER_BIND_DEVICE = 3 * 1000;

    public void startMainActivity(Activity activity) {
        Intent intent = new Intent(activity, MainActivity.class);
        activity.startActivity(intent);
        activity.finish();
    }

}
